package com.rightsidetech.system.mapper;

import com.rightsidetech.system.dtos.request.FeedbackPageReq;
import com.rightsidetech.system.dtos.request.ReplyReq;
import com.rightsidetech.system.dtos.response.FeedbackPageResp;
import com.rightsidetech.system.dtos.response.HistoryFeedbackPageResp;
import com.rightsidetech.system.entity.SysFeedback;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysFeedbackMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysFeedback record);

    int insertSelective(SysFeedback record);

    SysFeedback selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysFeedback record);

    int updateByPrimaryKeyWithBLOBs(SysFeedback record);

    int updateByPrimaryKey(SysFeedback record);

    List<FeedbackPageResp> page(FeedbackPageReq req);

    int reply(@Param("id")Long id,@Param("reply") String reply,@Param("loginInfoId")Long loginInfoId);

    int updateStatus(@Param("id") Long id,@Param("loginInfoId") Long loginInfoId);

    Long selectByTempId(@Param("tempId") Long tempId);

    List<HistoryFeedbackPageResp> historyPage(FeedbackPageReq req);
}